package com.amoyt.dao;


import com.amoyt.model.OrderModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDao {
    int deleteByPrimaryKey(@Param("id") Long id);

    int insert(OrderModel record);

    int insertSelective(OrderModel record);

    OrderModel selectByPrimaryKey(@Param("id") Long id);

    List<OrderModel> getMyOrder(@Param("userId") Long userId);

    List<OrderModel> getAllOrder(@Param("begin") int begin,@Param("nums") int nums);

    List<OrderModel> getOrderByNumber(@Param("searchValue") String searchValue,@Param("begin") int begin,@Param("nums") int nums);

    int countAllOrder();


    List<OrderModel> findOrderByIdleIdList(List<Long> idleIdList);

    int updateByPrimaryKeySelective(OrderModel record);

    int updateByPrimaryKey(OrderModel record);
}